<div id="content">
	<div class="row s_page_title">
		<sa-big-breadcrumbs [items]="['环卫管理','数据报表','区域统计']" icon="fa fa-cube" class="col-xs-12 col-sm-7 col-md-7 col-lg-4"></sa-big-breadcrumbs>
	</div>

	<sa-widgets-grid>
		<div class="s_table">
			<div sa-widget [editbutton]="false" color="darken" class="clearfix">
				<header><span class="widget-icon"> <i class="fa fa-table"></i> </span>
					<h2>区域统计</h2></header>
				<div>
					<div class="widget-body no-padding">
						<div class="page-header clearfix s_table_opreation">
							<div class="left page-header-btn">
								<div class="top_module">
									<span class="module_text">区域名称</span>
									<select name="" id="" class="module_inp" [(ngModel)]="areaName" style="width: 120px;" (change)='getStationByArea()'>
										<option value="">全部</option>
										<option *ngFor="let item of allAreaList" [attr.value]='item.areaName'>{{item.areaName}}</option>
									</select>
								</div>
								
								<div class="selectDate top_module">
									<table-select-date  (outerTime)="getSelectTableTime($event)" ></table-select-date>
								</div>
								<button type="button" class="btn btn-primary" (click)="search_data()">查询</button>
								<button type="button" class="btn btn-primary" (click)="exportData()">导出</button>

							</div>
						</div>
						<div class="table_scroll">
							<table class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table">
								<thead>
									<tr>
										<th>区域名称</th>
										<th>总桶数</th>
										<th>总重量[千克]</th>
									</tr>
								</thead>
								<tbody>
									<tr *ngFor="let row of tableData; let i = index" [attr.data-index]="i"  >
										<td>{{row.areaName}}</td>
										<td>{{row.number}}</td>
										<td>{{row.weight}}</td>
									</tr>
								</tbody>
							</table>
						</div>
						<div class="table-fix clearfix">
							<paginator 
								[totalRecords]="totalCount" 
								[rows]="pageSize" 
								[currentPage]="curPage - 1" 
								(onPageChange)="paginate($event)">
							</paginator>
							<button type="button" class="btn default refresh_btn" (click)="refresh()"><i class="fa fa-refresh"></i></button>
						</div>
					</div>
				</div>
			</div>
		</div>
	</sa-widgets-grid>

</div>